"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
exports.__esModule = true;
function aa(a, b) {
    return a + b;
}
var e = aa(1, 2332);
console.log(e);
var b = 3;
exports.d = 34;
var app_1 = require("./app");
console.log(app_1.f);
var obj = { name: 'xiaoming', age: 13 };
console.log(obj);
obj.age = 34;
var Obj = /** @class */ (function () {
    function Obj() {
    }
    Obj.prototype.changeF = function () { };
    ;
    return Obj;
}());
var Animal = /** @class */ (function (_super) {
    __extends(Animal, _super);
    function Animal(name, age) {
        var _this = _super.call(this) || this;
        _this.name = name;
        _this.age = age;
        return _this;
    }
    // changeF: void {
    // }
    Animal.prototype.say = function () {
        console.log('this is animal');
    };
    Animal.changeFeature = function () {
    };
    Animal.featureA = 'animal';
    return Animal;
}(Obj));
// Animal.changeFeature()
var Cat = /** @class */ (function (_super) {
    __extends(Cat, _super);
    function Cat(name, age, feature) {
        var _this = _super.call(this, name, age) || this;
        _this.run = function () {
            console.log(_this);
        };
        _this.feature = feature;
        return _this;
    }
    Cat.prototype.say = function () {
        console.log('this is cat', Animal.featureA);
        this.say();
        return Animal.featureA;
    };
    return Cat;
}(Animal));
var C = new Cat('wangcai', 34, 'little');
// C.say()
console.log(new Cat('wangcai', 34, 'little').run(), Cat.featureA, Animal.featureA, new Animal('animal', 23));
var objF = {
    gender: 'female',
    age: 18,
    name: 'minmin'
};
var d2 = 23;
console.log(typeof d2, typeof typeof d2);
// type ty=number| string |null
// let fa :ty =null
// let z:number=fa*2
var aaa = function (a, b) {
    return a - b;
};
var person = { age: 18, name: 'xiaoming2' };
var d1 = { x: 3, y: 4 };
var d22 = { x: 5, y: 7 };
function id(n) {
    return n;
}
var ccc = id(100);
function propFun(prop, obj) {
    return obj[prop];
}
propFun('name', { name: 'xiaom', age: 18 });
function getLength(a) {
    return a;
}
getLength({ age: 18, length: 3, name: 13 });
